<template>
  <div>
      <child-nav-bar></child-nav-bar>
      <div v-html="content"></div>
  </div>
</template>

<script>
import ChildNavBar from 'views/detail/childDetail/ChildNavBar'
import {getGoodsDetail} from 'network/home'
export default {
  name: 'Detail',
  components: {
      ChildNavBar
  },
  data() {
      return {
          id: null,
          content: {}
      }
  },
  created() {
      this.id = this.$route.params.id
      //获取商品详情
      this.getGoodsDetail(this.id)
  },
  methods: {
      getGoodsDetail(goods_id) {
          getGoodsDetail(goods_id).then(res => {
              this.content = res.message.goods_introduce
              console.log('ddddddddddddddd',res);
          })
      }
  }
}
</script>

<style scoped>

</style>
